import api from './config.js'
export default{
	//用户可分享优惠券详情
	SM_USER_COUPON_DETAIL_FOR_SHARE(data){
		return api("post",data,"CLIENT_SM_USER_COUPON_DETAIL_FOR_SHARE","api");
	},
	//用户领取折扣券
	SM_USER_COUPON_RECEIVE(data){
		return api("post",data,"CLIENT_SM_USER_COUPON_RECEIVE","api");
	},
	// 获取物流信息
	SM_LOGISTICS_GET_BY_ORDER_ID(data){
		return api("post",data,"CLIENT_SM_LOGISTICS_GET_BY_ORDER_ID","api");
	},
	// 获取字典
	SYS_DICT_GET_BY_CODES(data){
		return api("post",data,"CLIENT_DICT_GET_BY_CODES","api");
	},
	// 待发货修改地址
	 SM_ORDER_UPDATE_SHIPPING_ADDRESS(data){
		return api("post",data,"CLIENT_SM_ORDER_UPDATE_SHIPPING_ADDRESS","api");
	},
	//// 提交订单支付方式
	SM_ORDER_PAYMENT(data){
		return api("post",data,"CLIENT_SM_ORDER_PAYMENT","api");
	},
	//推广中心列表分类
	SM_USER_COUPON_WARES_LIST_FOR_SHARE(data){
		return api("post",data,"CLIENT_SM_USER_COUPON_WARES_LIST_FOR_SHARE","api");
	},
	//推广中心列表
	SM_USER_COUPON_LIST_FOR_SHARE(data){
		return api("post",data,"CLIENT_SM_USER_COUPON_LIST_FOR_SHARE","api");
	},
	//优惠券绑定
	SM_USER_COUPON_BIND(data){
		return api("post",data,"CLIENT_SM_USER_COUPON_BIND","api");
	},
	//订单优惠券
	SM_USER_COUPON_LIST_FOR_ORDER(data){
		return api("post",data,"CLIENT_SM_USER_COUPON_LIST_FOR_ORDER","api");
	},
	//优惠券列表
	SM_USER_COUPON_LIST_FOR_PAGE(data){
		return api("post",data,"CLIENT_SM_USER_COUPON_LIST_FOR_PAGE","api");
	},
	//个人资料
	BIZ_USER_PROFILE_SELECT_BY_USER_ID(data){
		return api("post",data,"CLIENT_USER_PROFILE_SELECT_BY_USER_ID","api");
	},
	// 提交评论列表
	SM_EVALUATE_LIST_SAVE(data){
		return api("post",data,"CLIENT_SM_EVALUATE_LIST_SAVE","api");
	},
	//确认收货
	SM_ORDER_CONFIRM(data){
		return api("post",data,"CLIENT_SM_ORDER_CONFIRM","api");
	},
	//取消订单
	SM_ORDER_CANCEL(data){
		return api("post",data,"CLIENT_SM_ORDER_CANCEL","api");
	},
	//订单原因字典
	SYS_DICT_GET_BY_CODES(data){
		return api("post",data,"CLIENT_DICT_GET_BY_CODES","api");
	},
	//订单详情
	SM_ORDER_SELECT_BY_PRIMARYKEY(data){
		return api("post",data,"CLIENT_SM_ORDER_SELECT_BY_PRIMARYKEY","api");
	},
	//订单列表
	SM_ORDER_LIST(data){
		return api("post",data,"CLIENT_SM_ORDER_LIST","api");
	},
	//支付异常或者取消支付
	SM_PAY_CANCEL(data){
		return api("post",data,"CLIENT_SM_PAY_CANCEL","api");
	},
	//获取微信支付签名
	WX_CREATE_SM_PAY(data){
		return api("post",data,"CLIENT_WX_CREATE_SM_PAY","api");
	},
	//添加订单
	SM_ORDER_SAVE(data){
		return api("post",data,"CLIENT_SM_ORDER_SAVE","api");
	},
	//设置默认地址
	SM_SET_DEFAULT_SHIPPING_ADDRESS(data){
		return api("post",data,"CLIENT_SM_SET_DEFAULT_SHIPPING_ADDRESS","api");
	},
	//更新地址
	SM_SHIPPING_ADDRESS_UPDATE(data){
		return api("post",data,"CLIENT_SM_SHIPPING_ADDRESS_UPDATE","api");
	},
	//添加地址
	SM_SHIPPING_ADDRESS_SAVE(data){
		return api("post",data,"CLIENT_SM_SHIPPING_ADDRESS_SAVE","api");
	},
	//删除地址
	SM_SHIPPING_ADDRESS_DELETE(data){
		return api("post",data,"CLIENT_SM_SHIPPING_ADDRESS_DELETE","api");
	},
	//地址列表
	SM_SHIPPING_ADDRESS_LIST_FOR_PAGE(data){
		return api("post",data,"CLIENT_SM_SHIPPING_ADDRESS_LIST_FOR_PAGE","api");
	},
	//点赞
	SM_EVALUATE_LIKED(data){
		return api("post",data,"CLIENT_SM_EVALUATE_LIKED","api");
	},
	//用户评价列表
	SM_EVALUATE_LIST(data){
		return api("post",data,"CLIENT_SM_EVALUATE_LIST","api");
	},
	//添加购物车
	SM_SHOPPING_CART_SAVE(data){
		return api("post",data,"CLIENT_SM_SHOPPING_CART_SAVE","api");
	},
	//商品详情
	SM_WARES_DETAIL(data){
		return api("post",data,"CLIENT_SM_WARES_DETAIL","api");
	},
	//购物车
	SM_SHOPPING_CART_UPDATE(data){
		return api("post",data,"CLIENT_SM_SHOPPING_CART_UPDATE","api");
	},
	SM_SHOPPING_CART_LIST(data){
		    return api("post",data,"CLIENT_SM_SHOPPING_CART_LIST","api"); 
	},
	//首页列表
	SM_WARES_LIST(data){
		    return api("post",data,"CLIENT_SM_WARES_LIST","api"); 
		},
	CLIENT_SM_WARES_OF_TEST_LIST(data){
	    return api("post",data,"CLIENT_SM_WARES_OF_TEST_LIST","api"); 
	}, 
	//首页轮播图
   BIZ_BANNER_SELECT_LIST_BY_TYPE(data){
	    return api("post",data,"CLIENT_BANNER_SELECT_LIST_BY_TYPE","api"); 
	},
  login(data){
      return api("post",data,"WX_MP_AUTH_LOGIN","api"); 
  },
  register(data){
      return api("post",data,"WX_MP_USER_REGISTER","api"); 
  },
  getPhoneNumber(data){
      return api("post",data,"WX_MP_BINDING_PHONE","api"); 
  },
  
  downFiles(data){
	  return api("get",data," ","portal/attachment/download.do");
  },
  
  
}
